package com.blb.dto;

import java.util.ArrayList;
import java.util.List;

public class ZZhuboExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ZZhuboExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andZidIsNull() {
            addCriterion("zid is null");
            return (Criteria) this;
        }

        public Criteria andZidIsNotNull() {
            addCriterion("zid is not null");
            return (Criteria) this;
        }

        public Criteria andZidEqualTo(Integer value) {
            addCriterion("zid =", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidNotEqualTo(Integer value) {
            addCriterion("zid <>", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidGreaterThan(Integer value) {
            addCriterion("zid >", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidGreaterThanOrEqualTo(Integer value) {
            addCriterion("zid >=", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidLessThan(Integer value) {
            addCriterion("zid <", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidLessThanOrEqualTo(Integer value) {
            addCriterion("zid <=", value, "zid");
            return (Criteria) this;
        }

        public Criteria andZidIn(List<Integer> values) {
            addCriterion("zid in", values, "zid");
            return (Criteria) this;
        }

        public Criteria andZidNotIn(List<Integer> values) {
            addCriterion("zid not in", values, "zid");
            return (Criteria) this;
        }

        public Criteria andZidBetween(Integer value1, Integer value2) {
            addCriterion("zid between", value1, value2, "zid");
            return (Criteria) this;
        }

        public Criteria andZidNotBetween(Integer value1, Integer value2) {
            addCriterion("zid not between", value1, value2, "zid");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("`uid` is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("`uid` is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(Integer value) {
            addCriterion("`uid` =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(Integer value) {
            addCriterion("`uid` <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(Integer value) {
            addCriterion("`uid` >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(Integer value) {
            addCriterion("`uid` >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(Integer value) {
            addCriterion("`uid` <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(Integer value) {
            addCriterion("`uid` <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<Integer> values) {
            addCriterion("`uid` in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<Integer> values) {
            addCriterion("`uid` not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(Integer value1, Integer value2) {
            addCriterion("`uid` between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(Integer value1, Integer value2) {
            addCriterion("`uid` not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andNichenIsNull() {
            addCriterion("nichen is null");
            return (Criteria) this;
        }

        public Criteria andNichenIsNotNull() {
            addCriterion("nichen is not null");
            return (Criteria) this;
        }

        public Criteria andNichenEqualTo(String value) {
            addCriterion("nichen =", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenNotEqualTo(String value) {
            addCriterion("nichen <>", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenGreaterThan(String value) {
            addCriterion("nichen >", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenGreaterThanOrEqualTo(String value) {
            addCriterion("nichen >=", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenLessThan(String value) {
            addCriterion("nichen <", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenLessThanOrEqualTo(String value) {
            addCriterion("nichen <=", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenLike(String value) {
            addCriterion("nichen like", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenNotLike(String value) {
            addCriterion("nichen not like", value, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenIn(List<String> values) {
            addCriterion("nichen in", values, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenNotIn(List<String> values) {
            addCriterion("nichen not in", values, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenBetween(String value1, String value2) {
            addCriterion("nichen between", value1, value2, "nichen");
            return (Criteria) this;
        }

        public Criteria andNichenNotBetween(String value1, String value2) {
            addCriterion("nichen not between", value1, value2, "nichen");
            return (Criteria) this;
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Integer value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Integer value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Integer value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Integer value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Integer value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Integer value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Integer> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Integer> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Integer value1, Integer value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Integer value1, Integer value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andRoomidIsNull() {
            addCriterion("roomid is null");
            return (Criteria) this;
        }

        public Criteria andRoomidIsNotNull() {
            addCriterion("roomid is not null");
            return (Criteria) this;
        }

        public Criteria andRoomidEqualTo(String value) {
            addCriterion("roomid =", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotEqualTo(String value) {
            addCriterion("roomid <>", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidGreaterThan(String value) {
            addCriterion("roomid >", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidGreaterThanOrEqualTo(String value) {
            addCriterion("roomid >=", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidLessThan(String value) {
            addCriterion("roomid <", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidLessThanOrEqualTo(String value) {
            addCriterion("roomid <=", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidLike(String value) {
            addCriterion("roomid like", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotLike(String value) {
            addCriterion("roomid not like", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidIn(List<String> values) {
            addCriterion("roomid in", values, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotIn(List<String> values) {
            addCriterion("roomid not in", values, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidBetween(String value1, String value2) {
            addCriterion("roomid between", value1, value2, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotBetween(String value1, String value2) {
            addCriterion("roomid not between", value1, value2, "roomid");
            return (Criteria) this;
        }

        public Criteria andMiyaoIsNull() {
            addCriterion("miyao is null");
            return (Criteria) this;
        }

        public Criteria andMiyaoIsNotNull() {
            addCriterion("miyao is not null");
            return (Criteria) this;
        }

        public Criteria andMiyaoEqualTo(String value) {
            addCriterion("miyao =", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoNotEqualTo(String value) {
            addCriterion("miyao <>", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoGreaterThan(String value) {
            addCriterion("miyao >", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoGreaterThanOrEqualTo(String value) {
            addCriterion("miyao >=", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoLessThan(String value) {
            addCriterion("miyao <", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoLessThanOrEqualTo(String value) {
            addCriterion("miyao <=", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoLike(String value) {
            addCriterion("miyao like", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoNotLike(String value) {
            addCriterion("miyao not like", value, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoIn(List<String> values) {
            addCriterion("miyao in", values, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoNotIn(List<String> values) {
            addCriterion("miyao not in", values, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoBetween(String value1, String value2) {
            addCriterion("miyao between", value1, value2, "miyao");
            return (Criteria) this;
        }

        public Criteria andMiyaoNotBetween(String value1, String value2) {
            addCriterion("miyao not between", value1, value2, "miyao");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumIsNull() {
            addCriterion("guanzhunum is null");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumIsNotNull() {
            addCriterion("guanzhunum is not null");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumEqualTo(Integer value) {
            addCriterion("guanzhunum =", value, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumNotEqualTo(Integer value) {
            addCriterion("guanzhunum <>", value, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumGreaterThan(Integer value) {
            addCriterion("guanzhunum >", value, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumGreaterThanOrEqualTo(Integer value) {
            addCriterion("guanzhunum >=", value, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumLessThan(Integer value) {
            addCriterion("guanzhunum <", value, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumLessThanOrEqualTo(Integer value) {
            addCriterion("guanzhunum <=", value, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumIn(List<Integer> values) {
            addCriterion("guanzhunum in", values, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumNotIn(List<Integer> values) {
            addCriterion("guanzhunum not in", values, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumBetween(Integer value1, Integer value2) {
            addCriterion("guanzhunum between", value1, value2, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andGuanzhunumNotBetween(Integer value1, Integer value2) {
            addCriterion("guanzhunum not between", value1, value2, "guanzhunum");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andWeekstartIsNull() {
            addCriterion("weekstart is null");
            return (Criteria) this;
        }

        public Criteria andWeekstartIsNotNull() {
            addCriterion("weekstart is not null");
            return (Criteria) this;
        }

        public Criteria andWeekstartEqualTo(String value) {
            addCriterion("weekstart =", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartNotEqualTo(String value) {
            addCriterion("weekstart <>", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartGreaterThan(String value) {
            addCriterion("weekstart >", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartGreaterThanOrEqualTo(String value) {
            addCriterion("weekstart >=", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartLessThan(String value) {
            addCriterion("weekstart <", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartLessThanOrEqualTo(String value) {
            addCriterion("weekstart <=", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartLike(String value) {
            addCriterion("weekstart like", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartNotLike(String value) {
            addCriterion("weekstart not like", value, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartIn(List<String> values) {
            addCriterion("weekstart in", values, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartNotIn(List<String> values) {
            addCriterion("weekstart not in", values, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartBetween(String value1, String value2) {
            addCriterion("weekstart between", value1, value2, "weekstart");
            return (Criteria) this;
        }

        public Criteria andWeekstartNotBetween(String value1, String value2) {
            addCriterion("weekstart not between", value1, value2, "weekstart");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("`status` is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("`status` is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("`status` =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("`status` <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("`status` >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("`status` >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("`status` <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("`status` <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("`status` like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("`status` not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("`status` in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("`status` not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("`status` between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("`status` not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andZhubopicIsNull() {
            addCriterion("zhubopic is null");
            return (Criteria) this;
        }

        public Criteria andZhubopicIsNotNull() {
            addCriterion("zhubopic is not null");
            return (Criteria) this;
        }

        public Criteria andZhubopicEqualTo(String value) {
            addCriterion("zhubopic =", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicNotEqualTo(String value) {
            addCriterion("zhubopic <>", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicGreaterThan(String value) {
            addCriterion("zhubopic >", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicGreaterThanOrEqualTo(String value) {
            addCriterion("zhubopic >=", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicLessThan(String value) {
            addCriterion("zhubopic <", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicLessThanOrEqualTo(String value) {
            addCriterion("zhubopic <=", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicLike(String value) {
            addCriterion("zhubopic like", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicNotLike(String value) {
            addCriterion("zhubopic not like", value, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicIn(List<String> values) {
            addCriterion("zhubopic in", values, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicNotIn(List<String> values) {
            addCriterion("zhubopic not in", values, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicBetween(String value1, String value2) {
            addCriterion("zhubopic between", value1, value2, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZhubopicNotBetween(String value1, String value2) {
            addCriterion("zhubopic not between", value1, value2, "zhubopic");
            return (Criteria) this;
        }

        public Criteria andZrenqiIsNull() {
            addCriterion("zrenqi is null");
            return (Criteria) this;
        }

        public Criteria andZrenqiIsNotNull() {
            addCriterion("zrenqi is not null");
            return (Criteria) this;
        }

        public Criteria andZrenqiEqualTo(Integer value) {
            addCriterion("zrenqi =", value, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiNotEqualTo(Integer value) {
            addCriterion("zrenqi <>", value, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiGreaterThan(Integer value) {
            addCriterion("zrenqi >", value, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiGreaterThanOrEqualTo(Integer value) {
            addCriterion("zrenqi >=", value, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiLessThan(Integer value) {
            addCriterion("zrenqi <", value, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiLessThanOrEqualTo(Integer value) {
            addCriterion("zrenqi <=", value, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiIn(List<Integer> values) {
            addCriterion("zrenqi in", values, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiNotIn(List<Integer> values) {
            addCriterion("zrenqi not in", values, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiBetween(Integer value1, Integer value2) {
            addCriterion("zrenqi between", value1, value2, "zrenqi");
            return (Criteria) this;
        }

        public Criteria andZrenqiNotBetween(Integer value1, Integer value2) {
            addCriterion("zrenqi not between", value1, value2, "zrenqi");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}